package DBLayer;

import java.util.ArrayList;

import ModelLayer.Apartment;

public interface IFDBApartment {
	public ArrayList<Apartment> getAll();
	public ArrayList<Apartment> getApartmentsByLandlordId(int landId);
	public ArrayList<Apartment> getAll_where(String wClause);
	public ArrayList<Apartment> searchRandom(String searchF);
	public Apartment find(int apartId, boolean getContracts);
	
	public int insert(Apartment apartment);
	public int update(Apartment apartment);
	public int delete(int apartId);
	
	ArrayList<Apartment> getAll_withAutoLevy();
	ArrayList<Apartment> getAll_withAutoRate();
	int getPropertiesWithoutTenants();
	int getProperties();
}
